#include "whaletabbase.h"
#include <QtDebug>

WhaleTabBase::WhaleTabBase( QWidget * parent ) : QWidget( parent ) {
    this->setFixedWidth( 440 ); // TODO: move this to theme files
}

void WhaleTabBase::close() {
    QWidget::close();
    emit closed();
}

void WhaleTabBase::setPlugin( TabInterface * plugin ) {
    this->mPlugin = plugin;
}

TabInterface * WhaleTabBase::plugin() {
    return this->mPlugin;
}
